package io.geekidea.springbootplus.system.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysAdvertise对象",description = "首页轮播广告表")
public class AdvertiseQueryVo extends BaseEntity {

    private static final long serialVersionUID = 5976395219698944318L;
    @ApiModelProperty("编号")
    @TableId(value = "id" ,type =IdType.AUTO)
    private Integer id;

    @ApiModelProperty("轮播位置")
    private String type;

    @ApiModelProperty("链接地址")
    private String url;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图片地址")
    private String pic;

    @ApiModelProperty("图片宽度")
    private Integer width;

    @ApiModelProperty("图片高度")
    private Integer height;

    @ApiModelProperty("状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty("创建时间 默认系统当前时间")
    private Date createTime;

}
